/**
 *                            License
 * THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS  
 * CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). 
 * THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW.  
 * ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR  
 * COPYRIGHT LAW IS PROHIBITED.
 * 
 * BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND  
 * AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE  
 * MAY BE CONSIDERED TO BE A CONTRACT,
 * THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED 
 * HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.
 * 
 */
package com.lineage.server.templates;

/**
 * Class <code>L1Mail</code> 数据库模板:邮件.
 * 
 * @author jrwz
 * @version 2012-6-17上午04:08:59
 * @see com.lineage.server.templates
 * @since JDK1.7
 */
public final class L1Mail {

    /** 编号. */
    private int id;
    /** 邮件类型. */
    private int type;
    /** 发件人名称. */
    private String senderName;
    /** 收件人名称. */
    private String receiverName;
    /** 日期(格式:yy/mm/dd). */
    private String date = null;
    /** 阅读状态. */
    private int readStatus = 0;
    /** 题目. */
    private byte[] subject = null;
    /** 内容. */
    private byte[] content = null;

    /** 数据库模板:邮件. */
    public L1Mail() {
    }

    /**
     * 取得内容.
     * 
     * @return 内容
     */
    public byte[] getContent() {
        return this.content;
    }

    /**
     * 取得日期(格式:yy/mm/dd).
     * 
     * @return 日期(格式:yy/mm/dd)
     */
    public String getDate() {
        return this.date;
    }

    /**
     * 取得编号.
     * 
     * @return 编号
     */
    public int getId() {
        return this.id;
    }

    /**
     * 取得阅读状态.
     * 
     * @return 阅读状态
     */
    public int getReadStatus() {
        return this.readStatus;
    }

    /**
     * 取得收件人名称.
     * 
     * @return 收件人名称
     */
    public String getReceiverName() {
        return this.receiverName;
    }

    /**
     * 取得发件人名称.
     * 
     * @return 发件人名称
     */
    public String getSenderName() {
        return this.senderName;
    }

    /**
     * 取得题目.
     * 
     * @return 题目
     */
    public byte[] getSubject() {
        return this.subject;
    }

    /**
     * 取得邮件类型.
     * 
     * @return 邮件类型
     */
    public int getType() {
        return this.type;
    }

    /**
     * 设置内容.
     * 
     * @param arg
     *            数组内的内容
     */
    public void setContent(final byte[] arg) {
        this.content = arg;
    }

    /**
     * 设置日期(格式:yy/mm/dd).
     * 
     * @param s
     *            日期(格式:yy/mm/dd)
     */
    public void setDate(final String s) {
        this.date = s;
    }

    /**
     * 设置编号.
     * 
     * @param i
     *            编号
     */
    public void setId(final int i) {
        this.id = i;
    }

    /**
     * 设置阅读状态.
     * 
     * @param i
     *            阅读状态
     */
    public void setReadStatus(final int i) {
        this.readStatus = i;
    }

    /**
     * 设置收件人名称.
     * 
     * @param s
     *            收件人名称
     */
    public void setReceiverName(final String s) {
        this.receiverName = s;
    }

    /**
     * 设置发件人名称.
     * 
     * @param s
     *            发件人名称
     */
    public void setSenderName(final String s) {
        this.senderName = s;
    }

    /**
     * 设置题目.
     * 
     * @param arg
     *            数组内的题目
     */
    public void setSubject(final byte[] arg) {
        this.subject = arg;
    }

    /**
     * 设置邮件类型.
     * 
     * @param i
     *            邮件类型
     */
    public void setType(final int i) {
        this.type = i;
    }
}
